package com.training.java.core.homework02;

public class TelevisionDemo {

	public static void main(String[] args) {

		Television television = new Television(TelevisionChannels.DEFAULT);
		System.out.println("");
		
		System.out.println("Ha ha!, I am going to watch relax and watch TV now .");

		if (!television.isPowerOn()) {
			television.turnOn();
		}
		
		System.out.println("");
		System.out.println("The sound is too low, I'll increase the volume. Increasing volume CLICK-CLICK...");
		television.increaseVolume(20);
		System.out.println("");
		System.out.println("Won't be too bad to increase a little but, what do you say? Increasing volume CLICK-CLICK...");
		television.increaseVolume(10);

		System.out.println("");
		System.out.println("Opps! I pressed to fast, it went up too high. Increasing volume CLICK-CLICK...");
		television.increaseVolume(80);

		System.out.println("");
		System.out.println("");
		System.out.println("Hey, stop stop, what are you doing! that's too high reduce right now, the neighbors will yell. Decreasing volume CLICK-CLICK...");

		television.decreaseVolume(60);
		// television.decreaseVolume(60); Tested with 60, it reduces to a minimum volume 0, works.
		
		System.out.println("");
		System.out.println("");
		System.out.println("What bogus shows are going on... what channel am I at? Checking channel CLICK-CLICK ...");
		System.out.println("... No woder, this is the " + television.getChannel() + " channel, that's why.");

		System.out.println("");
		System.out.println("");
		System.out.println("I am turning to science channel right now.");
		television.changeChannel(TelevisionChannels.NEWS);
		System.out.println("Oh no! this is all boring news, let me turn to the science channel, science is always interesting.");
		television.changeChannel(TelevisionChannels.SCIENCE);
		
		System.out.println("");
		System.out.println("");
		System.out.println("Owo! That was a whole lot of good information. Let me turn off TV and go to bed. TV is turning off CLICK-CLICK.");
		television.turnOff();
	}
}
